<!DOCTYPE html>
<html>
{include file="public/head" /}
<style>
    table {
        table-layout: fixed;
    }


    td {
		font-size:12px;

        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
</style>
<body class="zanpian-body">
<section class="content">
<div class="panel-body" id="contents" style="padding-top:0px">
<div class="panel-tool">
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12" style="padding:0 0 15px 0;">
              <div class="select-group-t w130 search">
                <select name="status" class="form-control select2" type="ajax-select" style="width:100%">
   <option value="{:url('index',array('view'=>$view,'status'=>$status,'lock'=>$lock,'isend'=>$isend,'prty'=>$prty,'weekday'=>$weekday,'stars'=>$stars,'type'=>$type,'order'=>$order,'limit'=>$limit))}">分类筛选</option>
{volist name=":F('_data/listvod')" id="vo"}<option value="{:url('index',array('view'=>$view,'cid'=>$vo.list_id,'status'=>$status,'lock'=>$lock,'isend'=>$isend,'prty'=>$prty,'weekday'=>$weekday,'stars'=>$stars,'type'=>$type,'order'=>$order,'limit'=>$limit))}" {eq name="vo.list_id" value="$cid"}selected{/eq}>{$vo.list_name}</option>
{if isset($vo['son'])}{volist name="vo['son']" id="splist"}<option value="{:url('index',array('view'=>$view,'cid'=>$splist.list_id,'status'=>$status,'lock'=>$lock,'isend'=>$isend,'prty'=>$prty,'weekday'=>$weekday,'stars'=>$stars,'type'=>$type,'order'=>$order,'limit'=>$limit))}" {eq name="splist.list_id" value="$cid"}selected{/eq}>├ {$splist.list_name}</option>{/volist}{/if}
{/volist}
</select>
              </div>
              <div class="select-group-t w120 search">
                <select name="status" class="form-control select2" type="ajax-select" style="width:100%">
                  <option value="{:url('index',array('view'=>$view,'cid'=>$cid,'lock'=>$lock,'isend'=>$isend,'prty'=>$prty,'weekday'=>$weekday,'stars'=>$stars,'type'=>$type,'order'=>$order,'limit'=>$limit))}">状态筛选</option>
                  <option value="{:url('index',array('view'=>$view,'cid'=>$cid,'status'=>1,'lock'=>$lock,'isend'=>$isend,'prty'=>$prty,'weekday'=>$weekday,'stars'=>$stars,'type'=>$type,'order'=>$order,'limit'=>$limit))}" {eq name="status" value="1"}selected{/eq}>已审</option>
                  <option value="{:url('index',array('view'=>$view,'cid'=>$cid,'status'=>0,'lock'=>$lock,'isend'=>$isend,'prty'=>$prty,'weekday'=>$weekday,'stars'=>$stars,'type'=>$type,'order'=>$order,'limit'=>$limit))}" {eq name="status" value="0"}selected{/eq}>未审</option>
                </select>
              </div> 
             <div class="select-group-t w120 search">
                <select name="lock" class="form-control select2" type="ajax-select" style="width:100%">
                  <option value="{:url('index',array('view'=>$view,'cid'=>$cid,'status'=>$status,'isend'=>$isend,'prty'=>$prty,'weekday'=>$weekday,'stars'=>$stars,'type'=>$type,'order'=>$order,'limit'=>$limit))}">锁定筛选</option>
                  <option value="{:url('index',array('view'=>$view,'cid'=>$cid,'status'=>$status,'lock'=>2,'isend'=>$isend,'prty'=>$prty,'weekday'=>$weekday,'stars'=>$stars,'type'=>$type,'order'=>$order,'limit'=>$limit))}" {eq name="lock" value="2"}selected{/eq}>锁定</option>
                  <option value="{:url('index',array('view'=>$view,'cid'=>$cid,'status'=>$status,'lock'=>1,'isend'=>$isend,'prty'=>$prty,'weekday'=>$weekday,'stars'=>$stars,'type'=>$type,'order'=>$order,'limit'=>$limit))}" {eq name="lock" value="1"}selected{/eq}>未锁</option>
                </select>
              </div>                             
              <div class="select-group-t w120 search">
                <select name="continu" class="form-control select2" type="ajax-select" style="width:100%">
<option value="{:url('index',array('view'=>$view,'cid'=>$cid,'status'=>$status,'lock'=>$lock,'prty'=>$prty,'weekday'=>$weekday,'stars'=>$stars,'type'=>$type,'order'=>$order,'limit'=>$limit))}">连载筛选</option>
<option value="{:url('index',array('view'=>$view,'cid'=>$cid,'status'=>$status,'lock'=>$lock,'isend'=>1,'prty'=>$prty,'weekday'=>$weekday,'stars'=>$stars,'type'=>$type,'order'=>$order,'limit'=>$limit))}" {eq name="continu" value="1"}selected{/eq}>连载中</option>
<option value="{:url('index',array('view'=>$view,'cid'=>$cid,'status'=>$status,'lock'=>$lock,'isend'=>2,'prty'=>$prty,'weekday'=>$weekday,'stars'=>$stars,'type'=>$type,'order'=>$order,'limit'=>$limit))}" {eq name="continu" value="2"}selected{/eq}>已完结</option>
</select>
              </div>

              <div class="select-group-t w120 search">
                <select name="status" class="form-control select2" type="ajax-select" style="width:100%">
<option value="{:url('index',array('view'=>$view,'cid'=>$cid,'status'=>$status,'lock'=>$lock,'isend'=>$isend,'type'=>$type,'order'=>$order,'limit'=>$limit))}">其他筛选</option>
<optgroup label="属性筛选">
<option value="{:url('index',array('view'=>$view,'cid'=>$cid,'status'=>$status,'lock'=>$lock,'isend'=>$isend,'weekday'=>$weekday,'stars'=>$stars,'type'=>$type,'order'=>$order,'limit'=>$limit))}">全部属性</option>
{volist name=":parse('textarea',config('setting.document_position'))" id="vo"}
<option value="{:url('index',array('view'=>$view,'cid'=>$cid,'status'=>$status,'lock'=>$lock,'isend'=>$isend,'prty'=>$key,'weekday'=>$weekday,'stars'=>$stars,'type'=>$type,'order'=>$order,'limit'=>$limit))}" {eq name="key" value="$prty"}selected{/eq}>{$vo}</option>
{/volist}
  </optgroup>
<optgroup label="周期筛选">
<option value="{:url('index',array('view'=>$view,'cid'=>$cid,'status'=>$status,'lock'=>$lock,'isend'=>$isend,'prty'=>$prty,'stars'=>$stars,'type'=>$type,'order'=>$order,'limit'=>$limit))}">全部周期</option>
{volist name=":parse('textarea',config('setting.week_list'))" id="vo"}
<option value="{:url('index',array('view'=>$view,'cid'=>$cid,'status'=>$status,'lock'=>$lock,'isend'=>$isend,'prty'=>$prty,'weekday'=>$key,'stars'=>$stars,'type'=>$type,'order'=>$order,'limit'=>$limit))}" {eq name="key" value="$weekday"}selected{/eq}>{$vo}</option>
{/volist}
  </optgroup>
<optgroup label="星级筛选">
<option value="{:url('index',array('view'=>$view,'cid'=>$cid,'status'=>$status,'lock'=>$lock,'isend'=>$isend,'prty'=>$prty,'weekday'=>$weekday,'type'=>$type,'order'=>$order,'limit'=>$limit))}">全部星级</option>
<option value="{:url('index',array('view'=>$view,'cid'=>$cid,'status'=>$status,'lock'=>$lock,'isend'=>$isend,'prty'=>$prty,'weekday'=>$weekday,'stars'=>1,'type'=>$type,'order'=>$order,'limit'=>$limit))}" {eq name="stars" value="1"}selected{/eq}>1星</option>
<option value="{:url('index',array('view'=>$view,'cid'=>$cid,'status'=>$status,'lock'=>$lock,'isend'=>$isend,'prty'=>$prty,'weekday'=>$weekday,'stars'=>2,'type'=>$type,'order'=>$order,'limit'=>$limit))}" {eq name="stars" value="2"}selected{/eq}>2星</option>
<option value="{:url('index',array('view'=>$view,'cid'=>$cid,'status'=>$status,'lock'=>$lock,'isend'=>$isend,'prty'=>$prty,'weekday'=>$weekday,'stars'=>3,'type'=>$type,'order'=>$order,'limit'=>$limit))}" {eq name="stars" value="3"}selected{/eq}>3星</option>
<option value="{:url('index',array('view'=>$view,'cid'=>$cid,'status'=>$status,'lock'=>$lock,'isend'=>$isend,'prty'=>$prty,'weekday'=>$weekday,'stars'=>4,'type'=>$type,'order'=>$order,'limit'=>$limit))}" {eq name="stars" value="4"}selected{/eq}>4星</option>
<option value="{:url('index',array('view'=>$view,'cid'=>$cid,'status'=>$status,'lock'=>$lock,'isend'=>$isend,'prty'=>$prty,'weekday'=>$weekday,'stars'=>5,'type'=>$type,'order'=>$order,'limit'=>$limit))}" {eq name="stars" value="5"}selected{/eq}>5星</option>
  </optgroup>  
     
</select>
              </div> 
              <form class="form-inline form-search nice-validator n-default" id="form-search" method="post">
                <div class="input-group">
                <input class="form-control" placeholder="请输入关键词搜索" type="text" name="wd">
                <div class="input-group-btn">
                  <button type="submit" class="btn btn-default ajax-post" title="普通搜索" form="#form-search"><i class="glyphicon glyphicon-search"></i></button>
                </div>            
              </div>  
              </form>                                                                                         
              </div>
<!-- /.panel-tool -->
    <div class="tab-content">
              <form id="list" method="post">
                <table id="table" class="table table-striped table-bordered table-hover" style="margin-top: 0px;" width="100%">
                   <thead>
                    <tr>
                      <th style="text-align:center;vertical-align: middle; width:5%">
                      <label class="pretty success">
	                   <input type="checkbox" id="checkall" class="delcheckall"> 
	                    <label><i class="mdi mdi-check"></i></label>
	                  </label>
                      </th>
                      <th style="text-align:center;vertical-align: middle;width:6%">
                      {eq name="orders" value="id desc"}<a href="{:url('index',array('view'=>$view,'cid'=>$cid,'status'=>$status,'lock'=>$lock,'isend'=>$isend,'prty'=>$prty,'weekday'=>$weekday,'stars'=>$stars,'type'=>'id','order'=>'asc','limit'=>$limit))}" class="text-link sort ajax-url">编号 <i class="fa fa-angle-up"></i></a>{else/}<a href="{:url('index',array('view'=>$view,'cid'=>$cid,'status'=>$status,'lock'=>$lock,'isend'=>$isend,'prty'=>$prty,'weekday'=>$weekday,'stars'=>$stars,'type'=>'id','order'=>'desc','limit'=>$limit))}" class="text-link sort ajax-url">编号 <i class="fa fa-angle-down"></i></a>{/eq}</th>
                      <th style="text-align:left;vertical-align: middle;width:22%">名称</th>

                      <th style="text-align:center;vertical-align: middle;width:6%" class="hidden-xs">{eq name="orders" value="hits desc"}<a href="{:url('index',array('view'=>$view,'cid'=>$cid,'status'=>$status,'lock'=>$lock,'isend'=>$isend,'prty'=>$prty,'weekday'=>$weekday,'stars'=>$stars,'type'=>'hits','order'=>'asc','limit'=>$limit))}" class="text-link sort ajax-url">人气 <i class="fa fa-angle-up"></i></a>{else/}<a href="{:url('index',array('view'=>$view,'cid'=>$cid,'status'=>$status,'lock'=>$lock,'isend'=>$isend,'prty'=>$prty,'weekday'=>$weekday,'stars'=>$stars,'type'=>'hits','order'=>'desc','limit'=>$limit))}" class="text-link sort ajax-url">人气 <i class="fa fa-angle-down"></i></a>{/eq}</th>
                      <th style="text-align:center;vertical-align: middle;width:13%" class="hidden-xs">{eq name="orders" value="addtime desc"}<a href="{:url('index',array('view'=>$view,'cid'=>$cid,'status'=>$status,'lock'=>$lock,'isend'=>$isend,'prty'=>$prty,'weekday'=>$weekday,'stars'=>$stars,'type'=>'addtime','order'=>'asc','limit'=>$limit))}" class="text-link sort ajax-url">时间 <i class="fa fa-angle-up"></i></a>{else/}<a href="{:url('index',array('view'=>$view,'cid'=>$cid,'status'=>$status,'lock'=>$lock,'isend'=>$isend,'prty'=>$prty,'weekday'=>$weekday,'stars'=>$stars,'type'=>'addtime','order'=>'desc','limit'=>$limit))}" class="text-link sort ajax-url">时间 <i class="fa fa-angle-down"></i></a>{/eq}</th>                      
                      <th style="text-align:center;vertical-align: middle;width:18%">操作</th>
                    </tr>
                  </thead>                
               <tbody>
               {notempty name="list"}
               {volist name="list" id="vo"}
               <tr>
                <td class="bs-checkbox" style="text-align:center;vertical-align:middle; font-size:14px">
                <label class="pretty success">
                <input type="checkbox" name="id[]" value="{$vo['vod_id']}" id="checkbox"> 
	            <label><i class="mdi mdi-check"></i></label>
	            </label>
                </td>
                 <td style="text-align:center;vertical-align: middle;">{$vo['vod_id']}</td>
                 
                <td style="text-align:left;vertical-align: middle;">『<a href="{:url('index',array('view'=>$view,'cid'=>$vo['vod_cid'],'status'=>$status,'lock'=>$lock,'isend'=>$isend,'prty'=>$prty,'weekday'=>$weekday,'stars'=>$stars,'type'=>$type,'order'=>$order))}" class="text-link ajax-url">{:getlistname($vo['vod_cid'])}</a>』 {$vo.vod_name}</td>
                
                <td style="text-align:center;vertical-align: middle;" class="hidden-xs">{$vo.vod_hits|default='0'}</td>


                <td style="text-align:center;vertical-align: middle;" class="hidden-xs">{$vo.vod_addtime|date='Y-m-d H:i:s',###}</td>
                
                <td style="text-align:center;vertical-align: middle;"><a href="javascript:;" data="{$vo.vod_id}" class="btn btn-primary btn-xs add-vod-name"><i class="fa fa-plus-square"></i> 添加</a> </td>
              </tr>
              {/volist}
                 {else/}<tr><td style="text-align:center;vertical-align: middle;" colspan="11" >抱歉，没有找到相关内容！</td></tr>{/notempty} 
            </tbody>
                </table>
              </form>
            </div>
            {gt name="list->lastPage()" value="1"}
           <div class="panel-page">
              <div class="panel-page-url ajax-page">
               <ul class="pagination"> {$list->render()}<div class="panel-page-jump "><input type="input" name="page" id="page" min="1" value="{$list->currentPage()}" class="form-control"/><input type="button" value="跳 转" data-url="{:url_page(request()->action(),request()->param())}" class="btn btn-default ajax-jump" /></div></ul>
              </div>
            </div>
           <!-- /.panel-page --> 
            {/gt}
         </div>
         <!-- /.panel-body --> 
        </section>
           <div class="box-footer {notempty name=":request()->param('dialog')"}hidden{/notempty} layer-footer">
          <div  class="footer-btn">
               {notempty name=":request()->param('dialog')"}
               <button type="reset" class="btn btn-primary btn-embossed btn-close" onClick="layer.closeAll();"> 关闭</button>
               {/notempty}
            </div>
       </div>
       <!-- /.box-footer -->      
{include file="public/footer" /}
<script type="text/javascript">
				$(document).on("click", ".add-vod-name", function() {												  
				arr = $(this).attr("data").split("_");	
			    var val = parent.$('#news_vod_keywords').val();
		        if(val!=''){
			        val = val+','+arr[0];
		        }else{
			       val = arr[0];
		        }
				parent.$('#slide_vid').val(arr[0]);
                parent.$('#news_vod_keywords').val(val);	
				$(this).addClass('disabled').prop('disabled', false);
				layer.msg('添加关联视频ID成功', {icon:1,time: 1800});
				});	
</script>
</body>
</html>
